﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RapChieuPhim.DTO;
using RapChieuPhim.DAO;
using System.Collections;

namespace RapChieuPhim.BUS
{
    class TaiKhoanBUS
    {
        public static TaiKhoanDTO GetByID(int id)
        {
            TaiKhoanDAO tkDAO = new TaiKhoanDAO();
            return tkDAO.GetByID(id);
        }
        public static TaiKhoanDTO GetByUser(string user)
        {
            TaiKhoanDAO tkDAO = new TaiKhoanDAO();
            return tkDAO.GetByUser(user);
        }
        public static IList GetAll()
        {
            TaiKhoanDAO tkDAO = new TaiKhoanDAO();
            return tkDAO.GetAll();
        }

        public static void Insert(TaiKhoanDTO TaiKhoan)
        {
            TaiKhoanDAO tkDAO = new TaiKhoanDAO();
            tkDAO.Insert(TaiKhoan);
        }

        public static void Update(TaiKhoanDTO TaiKhoan)
        {
            TaiKhoanDAO tkDAO = new TaiKhoanDAO();
            tkDAO.Update(TaiKhoan);
        }

        public static void Delete(int id)
        {
            TaiKhoanDAO tkDAO = new TaiKhoanDAO();
            tkDAO.Delete(id);
        }
    }
}
